home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 3.7 / Buddy API Docs.swf / texts / 1376.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  4.3 KB  |  157 lines

  1. 100
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. PrinterInfo 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baPrinterInfo returns information about the installed printers.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baPrinterInfo( Info )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. String. 
  36. --- RECORDSEPARATOR ---
  37. Info is the type of information required. 
  38. --- RECORDSEPARATOR ---
  39. Can be 
  40. --- RECORDSEPARATOR ---
  41. "installed" 
  42. --- RECORDSEPARATOR ---
  43. returns full list of installed printers, drivers and ports 
  44. --- RECORDSEPARATOR ---
  45. "list" 
  46. --- RECORDSEPARATOR ---
  47. list of the names of installed printers 
  48. --- RECORDSEPARATOR ---
  49. "default" 
  50. --- RECORDSEPARATOR ---
  51. the current default printer 
  52. --- RECORDSEPARATOR ---
  53. "orientation" 
  54. --- RECORDSEPARATOR ---
  55. the orientation of the default printer 
  56. --- RECORDSEPARATOR ---
  57. "paper" 
  58. --- RECORDSEPARATOR ---
  59. the current paper size of the default printer 
  60. --- RECORDSEPARATOR ---
  61. "papers" 
  62. --- RECORDSEPARATOR ---
  63. the list of paper sizes supported by the default printer 
  64. --- RECORDSEPARATOR ---
  65. "papername" 
  66. --- RECORDSEPARATOR ---
  67. the name of the current paper of the default printer 
  68. --- RECORDSEPARATOR ---
  69. "papernames" 
  70. --- RECORDSEPARATOR ---
  71. the list of paper names of the default printer 
  72. --- RECORDSEPARATOR ---
  73. "paperlength" 
  74. --- RECORDSEPARATOR ---
  75. the length of the paper in the default printer in 1/1000 mm 
  76. --- RECORDSEPARATOR ---
  77. "paperwidth" 
  78. --- RECORDSEPARATOR ---
  79. the width of the paper in the default printer in 1/1000 mm 
  80. --- RECORDSEPARATOR ---
  81. "copies" 
  82. --- RECORDSEPARATOR ---
  83. the number of copies to print
  84. --- RECORDSEPARATOR ---
  85.  
  86. --- RECORDSEPARATOR ---
  87. Returns:
  88. --- RECORDSEPARATOR ---
  89.  
  90. --- RECORDSEPARATOR ---
  91. Depends on Info type. 
  92. --- RECORDSEPARATOR ---
  93. Xtra: "installed", "list", "papers", "papernames" return a list; 
  94. --- RECORDSEPARATOR ---
  95. "default", "orientation", "paper", "papername" return a string; 
  96. --- RECORDSEPARATOR ---
  97. "paperlength", "paperwidth" and "copies" return an integer. 
  98. --- RECORDSEPARATOR ---
  99. UCD: always returns a string.
  100. --- RECORDSEPARATOR ---
  101.  
  102. --- RECORDSEPARATOR ---
  103. Examples:
  104. --- RECORDSEPARATOR ---
  105.  
  106. --- RECORDSEPARATOR ---
  107. Director: 
  108. --- RECORDSEPARATOR ---
  109. set printer = baPrinterInfo( "default" ) 
  110. --- RECORDSEPARATOR ---
  111. Authorware: 
  112. --- RECORDSEPARATOR ---
  113. printerList := baPrinterInfo( "list" )
  114. --- RECORDSEPARATOR ---
  115.  
  116. --- RECORDSEPARATOR ---
  117. Notes:
  118. --- RECORDSEPARATOR ---
  119.  
  120. --- RECORDSEPARATOR ---
  121. The "installed"  info type returns a list (Xtra) or a string (UCD) - one list element or 
  122. --- RECORDSEPARATOR ---
  123. line for each printer.  Each element will consist of the printer name, then the driver, 
  124. --- RECORDSEPARATOR ---
  125. then the port, all separated by commas. eg. 
  126. --- RECORDSEPARATOR ---
  127. ["EPSON Stylus COLOR 400,EPS400,LPT1:", "Acrobat 
  128. --- RECORDSEPARATOR ---
  129. PDFWriter,PDFWRITR,DISK:"] (Xtra) 
  130. --- RECORDSEPARATOR ---
  131. "EPSON Stylus COLOR 400,EPS400,LPT1:\rAcrobat 
  132. --- RECORDSEPARATOR ---
  133. PDFWriter,PDFWRITR,DISK:" (UCD) 
  134. --- RECORDSEPARATOR ---
  135. The "list" Info type returns a list with just the printer names. eg 
  136. --- RECORDSEPARATOR ---
  137. ["EPSON Stylus COLOR 400", "Acrobat PDFWriter"] 
  138. --- RECORDSEPARATOR ---
  139. The "orientation" Info type will return "Landscape", "Portrait" or "Unknown". 
  140. --- RECORDSEPARATOR ---
  141. The "paper" Info type returns the size of the selected paper. It will be one of the 
  142. --- RECORDSEPARATOR ---
  143. following values: 
  144. --- RECORDSEPARATOR ---
  145. "Letter", "LetterSmall", "Tabloid", "Ledger", "Legal", "Statement", "Executive", "A3", 
  146. --- RECORDSEPARATOR ---
  147. "A4", "A4Small", "A5", "B4", "B5", "Folio", "Quarto", "10x14", "11x17", "Note", 
  148. --- RECORDSEPARATOR ---
  149. "Envelope9", "Envelope10", "Envelope11", "Envelope12", "Envelope14", "CSheet", 
  150. --- RECORDSEPARATOR ---
  151. "DSheet", "ESheet", "EnvelopeDL", "EnvelopeC5", "EnvelopeC3", "EnvelopeC4", 
  152. --- RECORDSEPARATOR ---
  153. "EnvelopeC6", "EnvelopeC65", "EnvelopeB4", "EnvelopeB5", "EnvelopeB6", 
  154. --- RECORDSEPARATOR ---
  155. "EnvelopeItaly", "EnvelopeMonarch", "EnvelopePersonal", "FanFoldUS", 
  156. --- RECORDSEPARATOR ---
  157. "FanFoldStdGerman",  "FanFoldLegalGermany", "User", "Unknown".